<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<html>
<head>
<title>封条总况、封条查询</title>
<%@ include file="/comm.jsp"%>
</head>
<body>
	<%@ include file="/messages.jsp" %>
	<s:form action="validate_listAll" namespace="/seal" name="formpage">
			<table width="700" border="0" cellpadding="0" >
					<tr>
					  <td align="right" class="tr_title">公司代码：</td>
					  <td>
					  	<input type="text" maxlength="10" id="companyId" name="validateDto.companyId" value="${validateDto.companyId}">
					  </td>
					  <td align="right" class="tr_title">订单号：</td>
					  <td>
					  	<input type="text" maxlength="20" id="orderId" name="validateDto.orderId" value="${validateDto.orderId}">
					  </td>
					</tr>
					<tr>
					  <td align="right" class="tr_title">封条号：</td>
					  <td>
					  	<input type="text" name="validateDto.seqId" value="${validateDto.seqId}" id="seqId"  maxlength="20"/>
					  </td>
					  <td align="right" class="tr_title">状态：</td>
					  <td>
					  	<s:select list="#{'':'--全部--','01':'未激活','02':'已激活','03':'已验证','06':'已作废'}"
					   		 name="validateDto.status"
					  		 value="#request.validateDto.status" 
					  		 cssStyle="width:100px" >
					  	</s:select>					  	
					  </td>
					</tr>
					<tr>
						<td colspan="4" align="center" >
							<input type="submit" id="ok" class="button" value="查 询"/>&nbsp;&nbsp;
							<input type="reset" id="rest" class="button" value="重 置"/>
						</td>						
					</tr>
				</table>			

			<table border="0" cellpadding="5" cellspacing="1" class="tb_datalist">
				<tr class="tr_title">				
					<td  nowrap>封条号</td>
					<td  nowrap>公司代码</td>
	    			<td  nowrap>订单号</td>
	    			<td  nowrap>状态</td>
	    			<td  nowrap>用途</td>
	    			<td  nowrap>业务单号</td>
	    			<td  nowrap>更新日期</td>
	    			<td  nowrap>账户代码</td>
				</tr>
				<s:iterator value="#request.validList" id="ca">
					<tr class="list_tr_item"
						onMouseOver="javascript:this.className='tr_selected';"
						onMouseOut="javascript:this.className='tr_even';">						
						<td nowrap>
							<s:property value="#ca.seqId" />
						</td>
						<td nowrap>
							<s:property value="#ca.companyId" />
						</td>
						<td nowrap>
							<s:property value="#ca.orderId" />
						</td>
						<!-- 01：未激活、02：已激活、03：已验证、04：已损坏、05:已冻结 、06: 已作废 -->
    					<td nowrap>
    						<s:if test='"01"==#ca.status'>未激活</s:if>
    						<s:elseif test='"02"==#ca.status'>已激活</s:elseif>
    						<s:elseif test='"03"==#ca.status'>已验证</s:elseif>
    						<s:elseif test='"04"==#ca.status'>已损坏</s:elseif>
    						<s:elseif test='"05"==#ca.status'>已冻结</s:elseif>
    						<s:elseif test='"06"==#ca.status'>已作废</s:elseif>
    						<s:else><s:property value="#ca.status" /></s:else>
    					</td>
    					<td nowrap>
    						<s:if test='"01"==#ca.useType'>交付业务</s:if>
    						<s:elseif test='"02"==#ca.useType'>安全防护</s:elseif>
    						<s:else><s:property value="#ca.useType" /></s:else>
    					</td>
						
						<td nowrap>
							<s:property value="#ca.remark" /> 
						</td>
						<td nowrap>
							<s:date name="#ca.updateDate" format="yyyy-MM-dd HH:mm"/>
						</td>
						<td nowrap>
							<s:property value="#ca.updateUserid" /> 
						</td>
					</tr>
				</s:iterator>
				</table>
			
		<s:property value="#request.allowpage" escape="false" />
	</s:form>
</body>

</html>